package Task;

public class Bank {
    protected int year;
    protected double savedMoney;
    protected double interest;

    public Bank(int year, double savedMoney) {
        this.year = year;
        this.savedMoney = savedMoney;

    }
    public double computerInterest() {
        interest = year * 0.35 * savedMoney;
        return interest;
    }
}
